﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebSite.UserControl
{
    public partial class NavStep : System.Web.UI.UserControl
    {
        public string StepClassName
        {
            get;
            set;
        }

        

        protected void Page_Load(object sender, EventArgs e)
        {
            this.PreRender+=new EventHandler(NavStep_PreRender);
        }

        void NavStep_PreRender(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(StepClassName))
            {
                StepClassName="step1";
            }
            else
            {
                this.divnavStep.Attributes["class"] = StepClassName;
            }
        }
    }
}